/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DatabasePack;
import java.util.*;
import java.io.*;
import java.sql.SQLException;
/**
 *
 * @author abdosalah
 */
public class Prodatabase {

    /**
     * @param args the command line arguments
     */
    public static String[] seprate(String x)
    {
        int temp = 0;
        String[] str = new String[4];
       // use method 
        //String[] strings = x.split(",");
        for(int i=0 ;i<4; i++)
        {
        str[i] = "";
        }
     for (char ch : x.toCharArray()){
        
         if(ch == ',')
        {
            temp++;
            continue;
        }
       str[temp] = str[temp] + ch;
    }
     return str;
    }
    public static void main(String[] args) throws SQLException {

DatabaseConnection db = new DatabaseConnection();
db.OpenConnction();
/*ATM atm = new ATM();
System.out.println(ATM.check_ATM_Money("abdosalah",1000));*/
BankDatabase client = new BankDatabase();
System.out.println(client.bill_payment(123, "vodafone", 2000, 123 , 123));
//System.out.println(company.Update_Company_money("vodafone", 1000));
}
    
}
